# Maintainer: Peter Shkenev <santurysim@gmail.com>
pkgname=s6-man-pages
pkgver=2.11.3.2.4
pkgrel=3
pkgdesc="Unofficial mdoc versions of the s6 documentation"
url="https://git.sr.ht/~flexibeast/s6-man-pages"
arch="noarch"
license="ISC"
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~flexibeast/s6-man-pages/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"
options="!check" # no tests
install_if="${pkgname%-*-*}>=${pkgver%.*} docs"

package() {
	make DESTDIR="$pkgdir" install

	find "$pkgdir" -type f ! -name "*.gz" \
		-exec gzip -9 {} \;
}

sha512sums="
5942e40f8534267ba72ca987ea3dfde8f6aef2ab0d613a1a0a5be4b1a3e25b8d4ecc790c535360b05c54892c14eed94d73c474d1a966eef9ae6cec3e42d361af  s6-man-pages-2.11.3.2.4.tar.gz
"
